/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package com.inspur.edp.lcm.metadata.api.entity;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 GSP工程实体
 */
@Data
public class GspProject {

    /**
     关键应用编号
    */
    private String appCode;

    /**
     服务单元编号
     */
    private String serviceUnitCode;

    /**
     业务对象编号
     */
    private String bizobjectCode;

    /**
     业务对象ID
     */
    private String bizobjectID;

    /**
     工程命名空间
     */
    private String projectNameSpace;

       /**
     服务单元的部署路径
     */
    private String suDeploymentPath;

    /**
     元数据工程名称
    */
    private String metadataProjectName;

    /**
     元数据包名
    */
    private String metadataPackageName;

    /**
     配置文件部署路径
     */
    private String suConfigDeploymentPath;

    /**
     工程类型
     */
    private ProjectType projectType;

    /**
     工程扩展项
     */
    private List<Map<String, String>> projectExtendItem;

    /**
     * java包前缀
     */
    private String packagePrefix = "com";

    public GspProject() {}

    public GspProject(String appCode, String serviceUnitCode, String bizobjectCode, String projectNameSpace, String metadataProjectName, String metadataPackageName, ProjectType projectType) {
        this.appCode = appCode;
        this.serviceUnitCode = serviceUnitCode;
        this.bizobjectCode = bizobjectCode;
        this.projectNameSpace = projectNameSpace;
        this.metadataProjectName = metadataProjectName;
        this.metadataPackageName = metadataPackageName;
        this.projectType = projectType;
    }
}
